//
//  HeaderViewForSection.m
//  FreeReading
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "HeaderViewForSection.h"

@implementation HeaderViewForSection

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.headerViewForSection = [[UIImageView alloc] initWithFrame:frame];
        // 打开交互
        self.headerViewForSection.userInteractionEnabled = YES;
        
        [self addSubview:self.headerViewForSection];
        
        CGFloat width = frame.size.width;
        CGFloat height = frame.size.height;
        
        self.moreImage = [[UIImageView alloc] initWithFrame:CGRectMake(width - kMargin * 3, (height - 30) / 2, 30, 30)];
        self.moreImage.image = [UIImage imageNamed:@"more"];
        [self.headerViewForSection addSubview:self.moreImage];
        
        
    }
    return self;
}

@end
